package com.oocl.aeat.service.factory;

import com.oocl.aeat.service.MerchantService;
import com.oocl.aeat.service.impl.MerchantServiceImpl;
import com.oocl.aeat.tx.TxProxy;
/**
 * 添加事务
 * @author GANAB
 *
 */
public class MerchantServiceFactory {
	private static MerchantService merchantService;

	private MerchantServiceFactory() {
		
	}
	
	public static MerchantService getInstance(){
		if(merchantService==null){
			merchantService = new MerchantServiceImpl();
			merchantService = (MerchantService)TxProxy.factory(merchantService);
		}
		return merchantService;
	}
}
